home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Crosscountry USA Photo Safari
/
Crosscountry USA Photo Safari.iso
/
Data
/
cc_base
/
pak00_16bit_f.pk3
/
ferry_alert.gl.p
< prev
next >
Wrap
Text File
|
2002-11-29
|
3KB
|
94 lines
{
X = 150;
Y = 150;
Hidden = TRUE;
ScriptID = Script {
@show {
GuiToFront(SELF);
}
};
ChildID = {
GuiAnimation("get_rid_of_it") {
IgnoreTransparency = TRUE;
ScriptID = script {
@loaded {
ResPropSetInt(SELF,"X" ,-ResPropGetInt(SELF,"ScreenX"));
ResPropSetInt(SELF,"Y" ,-ResPropGetInt(SELF,"ScreenY"));
ResPropSetInt(SELF,"Width" ,CVarGetInt("SCREEN_MAX_X"));
ResPropSetInt(SELF,"Height",CVarGetInt("SCREEN_MAX_Y"));
}
}
},
GuiAnimation("save_background") {
AnimationID = "gui/dash/prompt_window.pcx";
X = 0;
Y = 0;
Height = 120;
Width = 350;
},
GuiButton("yes_button") {
X = 55;
Y = 82;
TextID = Mangle(68/*"Wait"*/);
Width = 100;
StyleID = "gui/dash/tab/button/tab.gbs";
FontID = "font/tab_button.tf";
AutoSize = HEIGHT;
ScriptID = Script {
@activate {
int time_now;
int fatigue;
int hunger;
resid Player;
resid Game;
Game = ResByName("Game");
Player = ResPropGetResID(Game,"game_cur_player");
ResPropAlias(Player,"time_now","time_now");
ResPropAlias(Player,"player_hunger","hunger");
ResPropAlias(Player,"player_fatigue","fatigue");
time_now += CVarGetInt("ferry_wait_time");
fatigue = Min(ResPropGetInt(Game,"game_fatigue_limit"), fatigue + CVarGetInt("ferry_wait_time"));
hunger = Min(ResPropGetInt(Game,"game_hunger_limit"), hunger + CVarGetInt("ferry_wait_time"));
CVarSetInt("ferry_wait_time",0);
ResPropSetInt(GuiParent(SELF),"Hidden",TRUE);
}
}; /* END OF SAVE BUTTON SCRIPT */
},
GuiButton("no_button") {
X = 190;
Y = 82;
TextID = Mangle(69/*"Cancel"*/);
Width = 100;
StyleID = "gui/dash/tab/button/tab.gbs";
FontID = "font/tab_button.tf";
AutoSize = HEIGHT;
ScriptID = Script {
@activate {
ResPropSetInt(GuiParent(SELF),"Hidden",TRUE);
}
}; /* END OF SAVE BUTTON SCRIPT */
},
GuiTextInput("message") {
X = 10;
Y = 17;
Width = 300;
Height = 50;
WordWrap = TRUE;
InputDisabled = TRUE;
FontID = "font/verdana_black_bold_12.tf";
}
};
}